package com.example.teesystem.entity.vo.chapter;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class ChapterDeleteVo {
    @NotNull(message = "是否级联删除不能为空")
    private Boolean cascadeDelete;
    
    @ValidId(message = ValidErrorMessage.CHAPTER_ID_VALID_FAIL)
    private Integer chapterId;

    @ValidId(message = ValidErrorMessage.COURSE_ID_VALID_FAIL, ifCourseId = true)
    private Integer courseId;
}